﻿<?php
include("/var/www/html/wx/html/header.html");
include_once './func/common.php';
include_once './func/secureUtil.php';

if (isset ( $_POST ['signature'] )) {
    if(!verify ( $_POST ))
        exit('验签失败');
} else {
    echo '签名为空';exit;
}
define('IN_PFT',1);
$total_fee = $_POST['txnAmt']/100;//金额
$out_trade_no = str_replace('PFT','',$_POST['orderId']);//订单号
?>

<title>订单支付成功</title>
<link type="text/css" rel="stylesheet" href="//wx/12301.cc/public/css/spaymode.css" />
<script type="text/javascript" src="//wx/12301.cc/public/js/modernizr.js"></script>
</head>

<body>
<?php if(!$_SESSION['customize_id']):?>
    <div id="fixedHead" class="fixedHead">
        <p class="con gtextoverflow">订单支付成功</p>
        <button id="fixedGoBack" class="fixedGoBack" ontouchend="javascript:history.go(-1)"><i class="fa fa-chevron-left"></i></button>
        <!--<button id="fixMoreBtn" class="fixMoreBtn"><i class="io"></i><i class="io"></i><i class="io"></i></button>-->
        <button id="fixMoreBtn" class="fixMoreBtn"><i class="fa fa-user"></i></button>
    </div>
<?php endif;?>
<div id="main" class="main">
    <div class="topW box">
        <div class="con">
            <div class="successIcon fl"><span class="cir"></span><table class="table"><tbody><tr><td><i class="fa fa-check"></i></td></tr></tbody></table></div>
            <div class="tw fl">
                <p class="p p1">订单支付成功</p>
            </div>
        </div>
    </div>
    <!--订单详情/二维码  begin -->
    <?php include '/var/www/html/wx/html/order_info.php';?>
    <!--订单详情/二维码 end  -->
    <div class="box total">
        <div class="con"><span class="lt">支付总金额</span><span class="yen orange">&yen;</span><span class="totalM orange"><?=$total_fee?></span></div>
    </div>
    <div class="box"><a class="con orderdetailBtn" href="//wx.12301.cc/html/order_detail.html?ordernum=<?=$out_trade_no?>">订单详情<i class="fa fa-angle-right"></i></a></div>
</div>
<? include("/var/www/html/wx/html/footer.html") ?>
</body>